<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:pe="http://primefaces.org/ui/extensions"
	xmlns:fn="http://java.sun.com/jsp/jstl/functions"
	xmlns:ui="http://java.sun.com/jsf/facelets">
	<p:toolbar>
		<p:toolbarGroup>
			<p:commandButton id="linksave" value="Guardar"  action="#{bean.update}" title="Grabar" update="panelCreate"/>
			<p:commandButton id="linkcancel" value="Cancelar" action="search?faces-redirect=true"  title="Cancelar" ajax="false" immediate="true"/>
			<p:commandButton id="linkdelete" value="Eliminar" rendered="#{not empty bean.entity.id}" action="#{bean.delete(bean.entity)}" 	onstart="return confirm('#{msgs['btn.confirmar.eliminar']}')" update="panelCreate"/>
			<pe:tooltip for="linkdelete" showEffect="fadeIn" hideEffect="fadeIn" />
			<pe:tooltip for="linkcancel" showEffect="fadeIn" hideEffect="fadeIn" />
			<pe:tooltip for="linksave" showEffect="fadeIn" hideEffect="fadeIn" />
		</p:toolbarGroup>
	</p:toolbar>
</ui:composition>
